import http from '@/utils/httpRequest'

// 抽取任务
export function paged (params) {
  return http({
    url: http.requestUrl('/api/jobConfig'),
    method: 'get',
    params
  })
}

export function fetch (params) {
  return http({
    url: http.requestUrl('/api/jobConfig/' + params),
    method: 'get'
  })
}

export function updated (data) {
  return http({
    url: http.requestUrl('/api/jobConfig/'),
    method: 'put',
    data
  })
}

export function created (data) {
  return http({
    url: http.requestUrl('/api/jobConfig/'),
    method: 'post',
    data
  })
}

export function deleted (data) {
  return http({
    url: http.requestUrl('/api/jobConfig/'),
    method: 'delete',
    params: data
  })
}

export function viewJobLog (params) {
  return http({
    url: http.requestUrl('/api/viewJobLog'),
    method: 'get',
    params
  })
}
